<?php
declare (strict_types=1);

namespace app;


use think\facade\Db;
use think\Service;
use yiqiniu\extend\library\SqlRecordLog;

/**
 * 应用服务类
 */
class AppService extends Service
{
    public function register()
    {
        // 服务注册
    }

    public function boot()
    {
        // 服务启动
        Db::listen(function ($sql, $runtime, $master) {
            SqlRecordLog::Record($sql, $runtime);
        });
    }
}
